import React, { Component } from "react";
import memoryUtils from "../../utils/memoryUtils.js"
import { Redirect } from "react-router-dom"
export default class Admin extends Component {

    render() {
        const { username } = memoryUtils.userInfo

        if (!username) {
            return <Redirect to="/login" />
        }
        return (<div>用户名：{username}</div>)
    }
}